package com.wx.serviceImpl;

import java.util.List;

import com.wx.daoImpl.NeedDaoImpl;
import com.wx.model.Need;
import com.wx.service.NeedService;

public class NeedServiceImpl implements NeedService {

	@Override
	public List<Need> queryAllNeed(int pageNum, int pageSize) throws Exception {
		
		return new NeedDaoImpl().selectAllNeed(pageNum, pageSize);
	}

	@Override
	public int queryNeedCount() throws Exception {
		
		return new NeedDaoImpl().selectNeedCount();
	}

}
